home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / PCTAGS15.ARJ / TEST.C < prev    next >
C/C++ Source or Header  |  1991-10-07  |  4KB  |  221 lines

  1. /*
  2.  EPSHeader
  3.  
  4.    File: test.c
  5.    Author: J. Kercheval
  6.    Created: Wed, 08/28/1991  20:53:31
  7. */
  8.  
  9. #include <stdio.h>
  10. #include "rwndwmd.h"
  11. #include "qmanager.h"
  12. #include "dbuggr.h"
  13. #include "dispat.h"
  14. #include "drivinit.h"
  15. #include "errors.h"
  16. #include "utils.h"
  17. #include "printer.h"
  18. #include "prstream.h"
  19. #include "resid.h"
  20. #include "wDialog.h"
  21. #include "werror.h"
  22. #include "wHelp.h"
  23. #ifdef HP
  24. #include "keymou.h"
  25. #include "reflect.h"
  26. #else /* HP */
  27. #include "prims.h"
  28. #include "zKeymou.h"
  29. #endif /* HP */
  30.  
  31. main2 ()
  32. {
  33.  
  34. #ifdef HELLO
  35.     {
  36. #else
  37.     {
  38. #endif
  39.  
  40. #ifdef HELLO_AGAIN
  41. #elif
  42.     {
  43. #endif
  44.     }        
  45. #define DEFINE_IN_MAIN2
  46. }
  47.  
  48. int hello2() 
  49. {
  50.     hmmm;
  51. }
  52.  
  53. void (**curdt)(void) = dprimary; /* current dispatch table */
  54.  
  55. void *hello_again, (**curdt)(void) = dprimary, *goodbye_again;
  56.  
  57. /* This dispatch table corresponds to character table dfctab */
  58. static void (*dfdtab[7])() = {
  59.     /* first 5 entries correspond to IG, AK, D1, EE, D3 */
  60.     ignchar, ackit, havedc1, endesc, havedc3,
  61.  
  62.     dfchar
  63. };
  64.  
  65. char pRefPrinter[80];
  66.  
  67. #define CHART_DFLOAT                     make_index (0, DFloat)
  68.  
  69. #define Macro1(c) tolower(c)
  70.  
  71. typedef int (KEY_HANDLER) (SHORT id, int key);
  72.  
  73. #define define1 (bad)
  74.  
  75. typedef void (* INIT_DEINIT_FXN) (LSCREEN *scr);
  76.  
  77. typedef struct logical_screen
  78. {
  79. } LOGICAL_SCREEN, LSCREEN;
  80.  
  81. extern struct dirent * readdir (DIR *directory);
  82.  
  83. extern char * (*screen_item_name) (INDEX);
  84.  
  85. void (* dprimary[17])() = 
  86. {
  87.     /* first 5 entries correspond to IG, AK, D1, EE, D3 */
  88.     ignchar, ackit, havedc1, endesc, havedc3,
  89.  
  90.     begstream, DoBell, backspace, dotab, linefeed,
  91. #ifdef _gr2393
  92.     carret, shiftout, shiftin, startesc, begtechgr,
  93. #else
  94.     carret, shiftout, shiftin, startesc, beggraph,
  95. #endif
  96.     blokterm, formfeed
  97. }, (* funcptr1[2])(), afterfuncptr;
  98.  
  99. // dde advise-link structure associating Refl variables with server app items
  100. typedef struct DDECLILINK {
  101.     ATOM      aItem;            // item name atom
  102.     short     nVar;            // number of reflection variable
  103. };
  104.  
  105. /* Possible KERMIT protocol states. */
  106. enum kermProtoStates {
  107.     _kmGetBytes = 2,
  108.     _kmNewRecvFile,
  109.     _kmNewSendFile = 4,
  110. };
  111.  
  112. static char *
  113. xmalloc(n)
  114.      int n;
  115. {
  116. }
  117.  
  118. struct DDECLILINK *proto3();
  119.  
  120. int proto1();
  121.  
  122. void (*proto2)();
  123.  
  124. typedef struct LL {
  125.     int c;
  126.     int d;
  127. } LL2;
  128.  
  129. LL2 t1;
  130. struct LL t2;
  131.  
  132. static struct __cside cModeCache[] = {    /* see cside[] in tabwrite.c */
  133.     {_cbaud,    0,    0},
  134.     {_cdatab,    0,    0},
  135.     {_chkpar,    0,    0},
  136.     {_xxonoff,    0,    0},
  137.     {_ctshnd,    0,    0},
  138.     {_rxonoff,    0,    0},
  139.     {_none8,    0,    0},
  140.     {_portsw,    0,    0},
  141.     {_Ihndshk,    0,    0},
  142.     {_Inhdc2,    0,    0},
  143.     {0}
  144. };
  145.  
  146. static void
  147. zaptemp(name)
  148.      char *name;
  149. {
  150.   struct tempnode *node, *temp;
  151.  
  152. }
  153.  
  154. // Borland C++ - (C) Copyright 1991 by Borland International
  155.  
  156. /*    HELLO.C -- Hello, world */
  157.  
  158. typedef char hello[20];
  159.  
  160. typedef struct {
  161.     char t;
  162.     int tt;
  163. } toodles[20];
  164.  
  165. typedef void (*typedef1)(char);
  166.  
  167. typedef BOOL (LINEFN) (int row, int col, struct scroll_box *sb);
  168.  
  169. #define ABORTXFER true+1 /* User hit abort key */
  170.  
  171. /*__________________________________________________________________________*/
  172. extern void fprompt(which)
  173. short which; /* 0 = send, 1 = receive */
  174. /*
  175.  * Do a prompted file transfer
  176.  */
  177. {
  178.     extern MODES curmodes;
  179.     extern char* nullstr;
  180.  
  181.     REGISTER Boolean oldqustat = curmodes.qustat;
  182.     REGISTER short oldrecsize = curmodes.recsize;
  183.  
  184.     setsmode(_locfile, nullstr);
  185.     setsmode(_hosfile, nullstr);
  186.     setfalse(_qustat);
  187.  
  188.     if (checkfiles(which, -1, true, true)) {
  189. #ifdef _Windows                 
  190.         rStatus |= rFTDialog | rFT;
  191.         initCWMenu();
  192. #endif
  193.         if (which == 0)
  194.               ftsend(-1, true);
  195.         else
  196.             ftrecv(-1, true);
  197. #ifdef _Windows                 
  198.         rStatus &= ~(rFTDialog | rFT);
  199.         initCWMenu();
  200. #endif
  201.     }
  202.     setmode(_qustat, (long)oldqustat);
  203.     setmode(_recsize, oldrecsize);
  204. }
  205.  
  206. int *(*hellotoyoutoo);
  207.  
  208. char c='l', h='t';
  209.  
  210. #define DEFINE_OUTSIDE_OF_MAIN()
  211.  
  212. int main()
  213. {
  214.     printf("Hello, world\n");
  215. #define DEFINE_IN_MAIN
  216.     return 0;
  217. }
  218. #define DEFINE_OUTSIDE_OF_MAIN()
  219.  
  220.  
  221.